<form class="py-3" action="{:DcUrl('attachment/apis/update')}" method="post" data-toggle="attachment-edit-form">
  <input type="hidden" value="{$info_id}" name="id" id="attachment-edit-id">
  <div class="input-group input-group-sm mb-3">
    <div class="input-group-prepend">
      <span class="input-group-text">原文件名</span>
    </div>
    <input class="form-control" type="text" name="title" id="attachment-edit-title" value="{$info_title}" autocomplete="off" required>
  </div>
  <div class="input-group input-group-sm mb-3">
    <div class="input-group-prepend">
      <span class="input-group-text">设置积分</span>
    </div>
    <input class="form-control" type="text" name="score" id="attachment-edit-score" value="{$attachment_score|default=0}" autocomplete="off" required>
  </div>
  <div class="form-group text-center mb-0">
    <button class="btn btn-sm btn-secondary" id="attachment-edit-close" type="button" data-dismiss="modal">关闭</button>
    <button class="btn btn-sm btn-dark mx-2" id="attachment-edit-submit" type="submit">修改</button>
    <button class="btn btn-sm btn-purple" id="attachment-edit-upload" type="button" data-url="{:DcUrl('attachment/apis/update')}" data-multiple="false">上传</button>
  </div>
</form>